package websocket.app.messaging;


public class MemoryStatusMessage implements Message {
    private long usedMemory;
    private long time;

    public MemoryStatusMessage(long usedMemory) {
	super();
	this.usedMemory = usedMemory;
	this.time = System.currentTimeMillis();
    }

    public long getUsedMemory() {
        return usedMemory;
    }
    
    @Override
    public String toString() {
        return "{\"time\":\"" + time + "\",\"mem\":" + usedMemory + "}";
    }
    
}
